package dynamicproxy
import org.junit.Test

class TestDynamicProxy {

    @Test
    fun testDynamicPoxy() {
        val girl = HanBinGirl()
        val proxy = IGirlPoxy(girl)
        val instance = proxy.getProxyInstance() as? IGirl
        instance?.date()
        instance?.watchMovies()

//        val mInstance = GirlProxyAgent(HanBinGirl()).mGirl
//        mInstance?.date()
    }
}